package teatime.core.service.manager;

import java.io.FileNotFoundException;
import java.util.List;
import java.util.Map;

import net.sf.json.JSONArray;

import org.dom4j.DocumentException;

/**
 * 读取XML文档内容
 * @author 顾峰
 *
 */
public interface XmlManager {
	/**
	 * 获取主菜单列表
	 * @return 主菜单List
	 * @throws DocumentException
	 * @throws FileNotFoundException
	 */
	public List<Map<String, Object>> getMenuList() throws DocumentException,
			FileNotFoundException;

	/**
	 * 通过异步方式获取主菜单列表
	 * @return 主菜单JSONArray
	 * @throws DocumentException
	 * @throws FileNotFoundException
	 */
	public JSONArray getMenuListByJSON() throws DocumentException,
			FileNotFoundException;
	
	/**
	 * 获取客户关系管理菜单列表
	 * @return 客户关系管理菜单List
	 * @throws DocumentException
	 * @throws FileNotFoundException
	 */
	public List<Map<String, Object>> getCRMMenuList() throws DocumentException,
			FileNotFoundException;

	/**
	 * 通过异步方式获取客户关系管理菜单列表
	 * @return 客户关系管理菜单JSONArray
	 * @throws DocumentException
	 * @throws FileNotFoundException
	 */
	public JSONArray getCRMMenuListByJSON() throws DocumentException,
			FileNotFoundException;

	public List<Map<String, Object>> getAreaList() throws DocumentException,
			FileNotFoundException;

	public JSONArray getAreaListByJSON() throws DocumentException,
			FileNotFoundException;
}
